package com.study.d5_thread_exer;

public class MakeThread extends Thread{
    private  Desk desk;
    public MakeThread(String name,Desk desk){
        super(name);
        this.desk=desk;
    }

    @Override
    public void run() {
        while(true){
            try {
                desk.put();
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
}
